package cn.wang.entity.sysadmin;

import java.io.Serializable;

/**
 * @author coach tam
 * @date 2017/10/9
 */
public class Dept implements Serializable {

    /**
     * 怎么区分代理主键,自然主键
     * 代理主键：并不是该对象属性之一，是单独添加用于标注唯一的属性。
     * 自然主键：该属性是该对象属性之一，比如：身份证号
     * <p>
     * DEPT_ID              varchar2(40)                    not null,
     * DEPT_NAME            varchar2(50),
     * PARENT_ID            varchar2(40),
     * STATE                NUMBER(6,0),
     */
    private String id;
    private String deptName;
   // private String parent_id;
    private Dept parent;
    private Integer state;

    public Dept getParent() {
        return parent;
    }

    public void setParent(Dept parent) {
        this.parent = parent;
    }

    public Dept() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}

